package com.elite;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.text.SimpleDateFormat;
import java.util.Date;

public class test {
   public static void main(String[] args) throws IOException{
	   
	   
	   
	   
	   Date d = new Date();
	   String XHH="";
	   String XHH1="";
		long longtime = d.getTime();
		String longtime1=longtime+"";
		longtime1=XHH+longtime1.substring(longtime1.length()-5, longtime1.length());
		String longtime2=XHH1+longtime1.substring(longtime1.length()-5, longtime1.length());
       String line="";
       String xh=longtime1.substring(longtime1.length()-4, longtime1.length());
       
       
       System.out.println("xh:"+xh);
//	   Object a=1;
//	   System.out.println(a.toString());
	   
	   
//	   String url1="http://220.194.54.161:9010/index.aspx?action=sendsms&username=glodon01&password=201102111532&mobile=12345678901&content=test&dstime=&xh=111814";
//	   URL url=new URL(url1);
//	   URLConnection conn=url.openConnection(); 
//	   conn.setDoOutput(true); 
//	   OutputStreamWriter wr=new OutputStreamWriter(conn.getOutputStream()); 
//	   BufferedReader rd=new BufferedReader(new InputStreamReader(conn.getInputStream())); 
//	   String line =rd.readLine(); 
//	   System.out.println(line);
	   
	   
	   
	   
//		Date date=new Date();
//		SimpleDateFormat formatter = new SimpleDateFormat ("yyyy-MM-dd HH:mm:ss");
//		String ctime = formatter.format(date);
//		System.out.println("现在的时间:"+ctime);
		
//	   String a="1,123456";
//	   String[] aa=a.split(",");
//	   System.out.println(aa[0]);
//	   System.out.println(aa[1]);
	   
	   
	   
   }
}
